package com.designpattern.behavior.strategy;

/**
 * @author Administration
 * @date 2021/10/21 - 10:13 - 星期四
 * @project 为型模式中的 策略模式 环境类
 * @package com.designpattern.behavior.strategy
 * @by 晨
 */
public class SalesMan {

    private Strategy strategy;

    public Strategy getStrategy() {
        return strategy;
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public SalesMan(Strategy strategy) {
        this.strategy = strategy;
    }

    public void salesManShow(){
        strategy.show();
    }
}
